package homework08;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;

public class homework002d {
	private static void bufferedReaderWriterCopyFile(File srcFile,File desFile) throws Exception{
		BufferedReader br=new BufferedReader(new FileReader(srcFile));
		BufferedWriter bw=new BufferedWriter(new FileWriter(desFile));
		char[] c=new char[1024];
		int ch=0;
		while((ch=br.read(c))!=-1){
			bw.write(c,0,ch);
		}
		br.close();
		bw.close();
	}
}
